package fr.Castorflex.SpamYourFriend;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class MyDialog
{

	public static void afficherAlertDialog(Context c, String str)
	{
		AlertDialog.Builder builder = new AlertDialog.Builder(c);
		builder.setMessage(str).setCancelable(false)
				.setPositiveButton("OK", new DialogInterface.OnClickListener()
				{
					public void onClick(DialogInterface dialog, int id)
					{
						dialog.cancel();
					}
				});

		AlertDialog alert = builder.create();
		alert.show();
	}

}
